Skip to content

Conversation

ouz-a
Copy link
Contributor

@ouz-a ouz-a commented Aug 19, 2022

Although this code should raise an overflow error, it didn't because check_recursion_limit it checks for depth = 128 but not for 129 which should have triggered the overflow error. Anyways this catches that error early.

Fixes #95134

@rustbot rustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Aug 19, 2022
@rust-highfive
Copy link
Contributor

r? @petrochenkov

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 19, 2022
@petrochenkov
Copy link
Contributor

I don't understand why this check needs to be performed in this specific place but not in others.
Perhaps someone else is more familiar with this code.
r? rust-lang/compiler

@ouz-a
Copy link
Contributor Author

ouz-a commented Aug 19, 2022

I don't understand why this check needs to be performed in this specific place but not in others.
Perhaps someone else is more familiar with this code.
r? rust-lang/compiler

There is a similar check above, so I thought it was appropriate to put it here 😅

@ouz-a
Copy link
Contributor Author

ouz-a commented Aug 19, 2022

Weird rust-highfive assigned you again 🤷‍♂️ r? @jackh726

@jackh726
Copy link
Member

@bors r+

@bors
Copy link
Collaborator

bors commented Aug 20, 2022

📌 Commit 4b47686 has been approved by jackh726

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 20, 2022
bors added a commit to rust-lang-ci/rust that referenced this pull request Aug 22, 2022
Rollup of 5 pull requests

Successful merges:

 - rust-lang#93162 (Std module docs improvements)
 - rust-lang#99386 (Add tests that check `Vec::retain` predicate execution order.)
 - rust-lang#99915 (Recover keywords in trait bounds)
 - rust-lang#100694 (Migrate rustc_ast_passes diagnostics to `SessionDiagnostic` and translatable messages (first part))
 - rust-lang#100757 (Catch overflow early)

Failed merges:

 - rust-lang#99917 (Move Error trait into core)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 88e39b2 into rust-lang:master Aug 22, 2022
@rustbot rustbot added this to the 1.65.0 milestone Aug 22, 2022
@ouz-a ouz-a deleted the issue-95134 branch November 13, 2022 09:56
bors added a commit to rust-lang-ci/rust that referenced this pull request Nov 24, 2022
…rors

Reverts check done by rust-lang#100757

As my `fix` caused more issues than it resolved it's better to revert it.
( rust-lang#103274 rust-lang#104322 rust-lang#104606)

r? `@compiler-errors`

Reopens rust-lang#95134
Aaron1011 pushed a commit to Aaron1011/rust that referenced this pull request Jan 6, 2023
…rors

Reverts check done by rust-lang#100757

As my `fix` caused more issues than it resolved it's better to revert it.
( rust-lang#103274 rust-lang#104322 rust-lang#104606)

r? `@compiler-errors`

Reopens rust-lang#95134
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ICE: 'index out of bounds: the len is 0 but the index is 0'
6 participants